diff --git a/src/index.ts b/src/index.ts index 307fd9b..a1d1ae6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,7 @@ fastify.get("/settings", async (request, response) => { fastify.put("/settings", async (request, response) => { if (request.headers["content-type"] !== "application/octet-stream") { - return response.status(413).send({ error: "Content type must be `application/octet-stream`" }); + return response.status(415).send({ error: "Content type must be `application/octet-stream`" }); } if ((request.body as Buffer).byteLength > SIZE_LIMIT) {