# 57005: 'Category' is too long

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when the `Category` value in your request is longer than Twilio accepts. For SendGrid email sends, each category must be 255 characters or fewer.

### Possible causes

* The `Category` value contains more than 255 characters.

### Possible solutions

* Shorten `Category` to 255 characters or fewer before you send the request.
* Validate the value in your application and reject or trim any overlong category names before submission.
* Use categories for broad message grouping, and keep each category label concise.

#### Additional resources

* [Working with Categories](/docs/sendgrid/for-developers/sending-email/categories)
* [Mail Send Errors](/docs/sendgrid/api-reference/mail-send/errors)
* [Debugging Your Twilio Application](/docs/usage/troubleshooting/debugging-your-application)
