Proper use of HTTP status codes in a “validation” server

前端 未结 7 1647

Among the data my application sends to a third-party SOA server are complex XMLs. The server owner does provide the XML schemas (.xsd) and, since the server rej

7条回答
  •  春和景丽
    2020-12-13 10:35

    I'd go with 400 Bad request and a more specific message in the body (possibly with a secondary error code in a header, like X-Parse-Error: 10451 for easier processing)

提交回复
热议问题