Hi,
Let's think about the following scenario:
1. Alice is sending request handled by ActivityHandler (e.g. POST
.../@me/@self/app.123)
2. request is passed to the proper service (e.g. MyActivityHandler)
3. there is something wrong the provided data (e.g. xxx property is missing)
4. ProtocolException is being thrown with message and response set (e.g.
new ProtocolException(HttpServletResponse.SC_BAD_REQUEST, "xxx not
provided", "xxx not provided"))
5. what Alice receives as a response is HTTP/1.1 400 Bad Request without
any details
Question - How you should pass error message to the response, so that
somebody will know what was wrong ?
Thx for any hint
best
--
Łukasz Uruski
Java Architect
e-mail: [email protected]
Nasza Klasa sp. z o.o.
ul. Gen. J. Bema 2, 50-265 Wrocław
Sąd Rejonowy dla Wrocławia-Fabrycznej we Wrocławiu
VI Wydział Gospodarczy Krajowego Rejestru Sądowego
KRS: 0000289629, NIP: 898-21-22-104 REGON: 020586020
Kapitał zakładowy: 67 850,00 PLN