get_http_description

in src/zrest/zcl_rest_utility_class.clas.abap [0:0]


  METHOD get_http_description.
    CASE code.
      WHEN '100'. description = 'Continue'.
      WHEN '101'. description = 'Switching Protocols'.
      WHEN '200'. description = 'OK'.
      WHEN '201'. description = 'Created'.
      WHEN '202'. description = 'Accepted'.
      WHEN '203'. description = 'Non-Authoritative Information'.
      WHEN '204'. description = 'No Content'.
      WHEN '205'. description = 'Reset Content'.
      WHEN '206'. description = 'Partial Content'.
      WHEN '300'. description = 'Multiple Choices'.
      WHEN '301'. description = 'Moved Permanently'.
      WHEN '302'. description = 'Found'.
      WHEN '303'. description = 'See Other'.
      WHEN '304'. description = 'Not Modified'.
      WHEN '305'. description = 'Use Proxy'.
      WHEN '307'. description = 'Temporary Redirect'.
      WHEN '400'. description = 'Bad Request'.
      WHEN '401'. description = 'Unauthorized'.
      WHEN '402'. description = 'Payment Required'.
      WHEN '403'. description = 'Forbidden'.
      WHEN '404'. description = 'Not Found'.
      WHEN '405'. description = 'Method Not Allowed'.
      WHEN '406'. description = 'Not Acceptable'.
      WHEN '407'. description = 'Proxy Authentication Required'.
      WHEN '408'. description = 'Request Timeout'.
      WHEN '409'. description = 'Conflict'.
      WHEN '410'. description = 'Gone'.
      WHEN '411'. description = 'Length Required'.
      WHEN '412'. description = 'Precondition Failed'.
      WHEN '413'. description = 'Request Entity Too Large'.
      WHEN '414'. description = 'Request-URI Too Long'.
      WHEN '415'. description = 'Unsupported Media Type'.
      WHEN '416'. description = 'Requested Range Not Satisfiable'.
      WHEN '417'. description = 'Expectation Failed'.
      WHEN '500'. description = 'Internal Server Error'.
      WHEN '501'. description = 'Not Implemented'.
      WHEN '502'. description = 'Bad Gateway'.
      WHEN '503'. description = 'Service Unavailable'.
      WHEN '504'. description = 'Gateway Timeout'.
      WHEN '505'. description = 'HTTP Version Not Supported'.
      WHEN OTHERS.
        description = ''.
    ENDCASE.