#4605 introduced quotas and uses the InsufficientCapacity error added by @sunshowers in #4573. InsufficientCapacity generates a 5xx error but I believe we should both have a distinct error type and a 400 error code for when provisioning fails due to quotas. As mentioned in #4573, AWS has good documentation on their api errors. They have InsufficientCapacity as a 5xx server error related to their servers not having the resources to handle a request and 4xx client errors like VcpuLimitExceeded for when users try to over provision their allotted resources.
#4605 introduced quotas and uses the
InsufficientCapacityerror added by @sunshowers in #4573.InsufficientCapacitygenerates a 5xx error but I believe we should both have a distinct error type and a 400 error code for when provisioning fails due to quotas. As mentioned in #4573, AWS has good documentation on their api errors. They haveInsufficientCapacityas a 5xx server error related to their servers not having the resources to handle a request and 4xx client errors likeVcpuLimitExceededfor when users try to over provision their allotted resources.