What Is a 507 Status Code?
The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
This condition is considered to be temporary. If the request that received this status code was the result of a user action, the request MUST NOT be repeated until it is requested by a separate user action.
- Source: RFC4918 Section 11.5
507 CODE REFERENCES
Rails HTTP Status Symbol
Symfony HTTP Status Constant
HttpComponents Core org.apache.hc.core5.http.HttpStatus.SC_INSUFFICIENT_STORAGE
507 status code example
Here is an example request and response that could result in a 507 Insufficient Storage status code:
PUT /documents/report.docx HTTP/1.1
<Binary data of 5MB document>
In this example, the client is attempting to upload a 5MB document to the server using the HTTP PUT method. The request includes a Content-Length header indicating the size of the document being uploaded.
HTTP/1.1 507 Insufficient Storage
Server is out of free storage space. 4096MB required
The server responds with a 507 Insufficient Storage status code to indicate that it is unable to fulfill the request due to a lack of available storage space. The response includes a plain text message indicating that the server is out of free storage space, and that a minimum of 4096MB is required to complete the request.
What causes a 507 status code?
A 507 Insufficient Storage status code is typically returned by a server when it is unable to complete a request due to a lack of available storage space.
This can occur for a number of reasons, including:
- Disk space limitations: The server’s disk or file system may have reached its capacity limit, preventing the server from storing any additional data.
- File quotas: The server may be configured with file or storage quotas, which limit the amount of disk space that can be used by individual users or groups. If a user attempts to upload or create a file that exceeds their allocated quota, a 507 status code may be returned.
- Temporary storage issues: The server may be experiencing temporary issues with its storage system, such as disk errors or failures, that prevent it from storing data.
In any case, a 507 status code indicates that the server is unable to complete the request due to a lack of available storage space, and the client may need to adjust the size or number of files being uploaded or stored, or contact the server administrator to resolve the storage issues.
How to fix a 507 status code
If you receive a 507 Insufficient Storage status code, there are a few potential troubleshooting steps you can take:
- Check available disk space: If you are attempting to upload files to a server, make sure that the server has enough available disk space to store the files. You can check available disk space using standard system administration tools or by contacting the server administrator.
- Review file quotas: If the server has file or storage quotas enabled, make sure that you have not exceeded your allocated quota. If you have, you may need to delete old files or request additional storage space from the server administrator.
- Contact the server administrator: If you are unable to determine the cause of the 507 error or if you believe it is a server-side issue, contact the server administrator for assistance. They may be able to help diagnose and resolve the issue, such as freeing up disk space, expanding quotas, or fixing temporary storage issues.
In general, resolving a 507 error requires freeing up disk space or allocating additional storage resources. Once the issue has been resolved, you should be able to retry the request and complete the upload or storage operation successfully.
- Learn about web development
- Learn about SEO
- Web development services from WebFX
- SEO services from WebFX
- MDN Web Docs
- What is a 503 Status Code?
- What is a 504 Status Code?
- What is a 505 Status Code?
- What is a 506 Status Code?
- What is a 508 Status Code?
- What is a 510 Status Code?
- What is a 511 Status Code?
- What is a 599 Status Code?
- What is ADA Compliance? (And What Does ADA Compliance Mean for Your Website?)
- What is GitHub and How Can You Use It?