Use http.MaxBytesError

We've tweaked the decodeJSON() helper function to check for the http.MaxBytesError type instead of relying on string comparison.