# Типы ошибок

## Missing parameter Error

```javascript
{
    'error_msg': 'Missing parameter: {YOUR MISS PARAM}',
    'error_code': 1,
}
```

## Missing special parameter Error

```javascript
{
    'error_msg': 'Missing special parameter',
    'error_code': 2,
}
```

## Invalid parameter type Error

```javascript
{
    'error_msg': 'Invalid parameter type',
    'error_code': 3,
}
```

## Unsupported diary Error

```javascript
{
    'error_msg': 'Unsupported diary',
    'error_code': 4,
}
```

## Communication diary Error

```javascript
{
    'error_msg': 'Communication error with diary. Unknown problem.',
    'error_code': 5,
}
```

## User not authorized Error

```javascript
{
    'error_msg': 'User not authorized',
    'error_code': 6,
}
```

## Invalid Date Format

```javascript
{
    'error_msg': 'Data does not match format',
    'error_code': 7,
}
```

## Diary Timeout Error

```javascript
{
    'error_msg': 'Timeout error when communicating with the diary.',
    'error_code': 8,
}
```

## Diary Auth Error

```javascript
{
    'error_msg': 'Authorization error when communicating with the diary.',
    'error_code': 9,
}
```

## Diary Connection Error

```javascript
{
    'error_msg': 'Connection error when communicating with the diary.',
    'error_code': 10,
}
```

## Student Is Not Found

```javascript
{
    'error_msg': 'The student is not found',
    'error_code': 11
}
```

## Invalid Parameter

```javascript
{
    'error_msg': 'Invalid parameter: {message}',
    'error_code': 12
}
```

## Permission Denied

```javascript
{
    'error_msg': 'Permission denied',
    'error_code': 13
}
```
