---
title: Status codes and limits
project: OpenSync
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/opensync/1-0/reference/status-codes/
updated: 2026-11-19T09:22:09.965Z
---

# Status codes and limits

> The answers of OpenSync, the WebSocket close codes and the limits.

## HTTP answers

| Request | Answer |
|---|---|
| `GET`, `POST`, `PUT`, `PATCH` or `DELETE` to `/sync/{channel}/` | `200`, empty body. |
| Another method, or a deeper path such as `/sync/a/b/` | `404` |
| A file upload larger than about 2 MB | `431` |
| `/download/{id}.dat` that is unknown or expired | `404` |
| `/setup/` without the setup token or with a wrong one | `401` |
| `GET /` without a stream request | `200`, plain text `OpenSync v1` (a new instance redirects to `/setup/`). |

## WebSocket

| Close code | Reason |
|---|---|
| `4001` | Wrong or removed token, or the IP address is locked. |

## Locked IP address

After six requests with a wrong token from one IP address, OpenSync refuses every request from that address that needs a token, even with the right token. This covers the setup interface and new client connections. The lock ends within 15 minutes, or when OpenSync restarts. See [Access problems](../../faq/access/).

## Limits

| What | Limit |
|---|---|
| File upload | about 2 MB per request |
| Messages for offline clients | not kept |
| Download links | until OpenSync restarts |
