---
title: "Discussion on \"Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success\" | Hashnode"
description: "Discussion on \"Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success\". Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success — a practical, contract-based look at the failure mode and how to handle it."
url: "https://hashnode.com/posts/mocking-file-upload-413-vs-201-size/6ae98f997442d01ac6e8658e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success](https://blogs.powerduck.com/mocking-file-upload-413-vs-201-size?utm_source=hashnode&utm_medium=feed)

Mocking File Uploads: Returning 413 for an Oversized Payload and 201 on Success — a practical, contract-based look at the failure mode and how to handle it.

Nov 3 · 5 min read · blogs.powerduck.com  
Read the article

-   [#mocking](https://hashnode.com/tag/mocking)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
