I have a REST and WCF service and want to send a custom status code based on the operation.
For example when some validation fails then I want to send HTTP 444 and when authorization fails I want to send HTTP 455
The question is how do we have it validated for both SOAP and REST web services.
On the client how does the error code act because when you send an HTTP 400/500 from a WCF Service (using SOAP) an exception is thrown on the client showing the status code?
Now if I send a new custom status code how does the client handle this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…