Improve defaultPostJsonLd error handling.

- Handle status codes outside of 200-299.
- Return JSON exceptions as errors.