Improve error/warning/notice handling.
NOTICEs and WARNINGs are now not triggering a json error response. This does not mean you should discard those, extend Server and implement custom error handling, maybe logging such events to make sure eveything is fine.
ERRORs and such discard the rest of the output and generate a full json response which contains the error.