Is there an enum or class in .NET containing the WebDAV http status codes -


i have been using httpstatuscode enumeration (msdn) return errors in web requests, want return 422, "unprocessable entity" (webdav.org), see not among enum's members.

i not able find in .net framework, , avoid custom solutions (devio.wordpress.org) if can (i.e. if indeed exist).

the scenario this: client posts request, , validation occurs in server. after quick search on decided 422 perhaps most appropriate, or maybe 400.

so, know if there enum or class in .net 4.0 containing webdav http status codes?

thank you!

no, no such file defined -- had same requirements api i'm building , decided typecast (which possible int enums) this:

try {     if (!repository.cancel(idhelper.decrypt(id))) {         return request.createresponse(httpstatuscode.notfound, "booking not found");     } } catch (exception x) {     // typecast 422 enum because it's not defined in httpstatuscode     return request.createresponse((httpstatuscode)422, x.message); } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -