return HTTP_INTERNAL_SERVER_ERROR if it is not a hash reference.