21 lines
487 B
C
21 lines
487 B
C
#ifndef STATUS_CODES_H
|
|
#define STATUS_CODES_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#define NUM_100_STATUS_CODES 2
|
|
#define NUM_200_STATUS_CODES 7
|
|
#define NUM_300_STATUS_CODES 8
|
|
#define NUM_400_STATUS_CODES 18
|
|
#define NUM_500_STATUS_CODES 6
|
|
|
|
extern const char *STATUS_CODES_100[];
|
|
extern const char *STATUS_CODES_200[];
|
|
extern const char *STATUS_CODES_300[];
|
|
extern const char *STATUS_CODES_400[];
|
|
extern const char *STATUS_CODES_500[];
|
|
|
|
const char *get_message_from_status_code(int status_code);
|
|
|
|
#endif
|