Module ot_http_status

HTTP Status helper module.

This module defines the ot_http_status behaviour.
Required callback functions: to_status/1, to_status/2.

Description

Provides functions to working with HTTP status codes to status records.

Data Types

http_status_code()


http_status_code() = 1..599

Function Index

to_status/1
to_status/2

Function Details

to_status/1


to_status(HttpStatusCode) -> opentelemetry:status()

to_status/2


to_status(HttpStatusCode, Message) -> opentelemetry:status()