Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18201

API Rate Limit message should be in JSON

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      When the rate-limit is exceeded, the API returns a plain-text body that says:

      "Rate limit for this resource has been exceeded"

      Which is not valid JSON. Because the rest of the API is JSON, it makes sense to return the rate-limit error message in JSON format. Something like this:

      { "error": "Rate limit for this resource has been exceeded" }

      would make it easier to handle errors in an automated fashion

      Attachments

        Activity

          People

            Unassigned Unassigned
            d4a0b85d-9561-4ba3-82cf-3326d4c50767 Deleted Account (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: