getStateByCode

Returns the error state corresponding to the given HTTP status code.

Return

The matching DocumentErrorStates, or SERVER_ERROR if no match is found.

Parameters

code

The HTTP status code to look up.