> For the complete documentation index, see [llms.txt](https://docs.laravieira.me/mysiga/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laravieira.me/mysiga/reference/general-exceptions.md).

# General Exceptions

<details>

<summary>502 Unable to load siga</summary>

This means the API couldn't connect to the Siga 3 servers, this usually means the servers are down.

```json
{
    "code": 502,
    "message": "Unable to load siga.",
    "uri": "*",
    "server": null,
    "siga": null,
    "client": "*",
    "docs": "https://docs.laravieira.me/mysiga",
    "date": "Sun, 21 May 2023 13:45:50 -0300"
}
```

</details>

<details>

<summary>401 Login required, please do it first</summary>

The user needs to log in first, so it can have access to the resource. If u logged in already, make sure u're sending the `PHPSESSID` cookie.

```json
{
    "code": 401,
    "message": "Login required, please do it first.",
    "uri": "*",
    "server": null,
    "siga": null,
    "client": "*",
    "docs": "https://docs.laravieira.me/mysiga",
    "date": "Sun, 21 May 2023 13:45:50 -0300"
}
```

</details>

<details>

<summary>404 Not Found</summary>

This means the giving method or path is not implemented or doesn't exist on this API.

```json
{
    "code": 404,
    "message": "Not Found",
    "uri": "*",
    "server": null,
    "siga": null,
    "client": "*",
    "docs": "https://docs.laravieira.me/mysiga",
    "date": "Sun, 21 May 2023 13:45:50 -0300"
}
```

</details>

<details>

<summary>404 This request is unavailable on Siga servers</summary>

This is only supposed to happen if you call the MySiga by its methods directly. It means the Siga servers didn't recognize the request or returned an invalid response.

```json
{
    "code": 404,
    "message": "This request is unavailable on Siga servers.",
    "uri": "*",
    "server": null,
    "siga": null,
    "client": "*",
    "docs": "https://docs.laravieira.me/mysiga",
    "date": "Sun, 21 May 2023 13:45:50 -0300"
}
```

</details>

<details>

<summary>424 Session not created. Load requested</summary>

This can happen if u try to access a resource without logging or loading the page or by not sending the `PHPSESSID` cookie.

```json
{
    "code": 424,
    "message": "Session not created. Load requested.",
    "uri": "*",
    "server": null,
    "siga": null,
    "client": "*",
    "docs": "https://docs.laravieira.me/mysiga",
    "date": "Sun, 21 May 2023 13:45:50 -0300"
}
```

</details>
