Bodygram

Error codes

Reference for every error code returned by the Bodygram Platform when a scan fails — grouped by category, with guidance for each.

When a scan can't be completed, the Bodygram Platform API returns an error object on the Scan instead of measurements. This happens both when a CreateScanRequest fails to create a scan and when a GetScanRequest fetches a scan that ultimately failed.

In that case:

  • Scan.status is "failure"
  • Scan.error.code is one of the codes listed below
  • Scan.error.type is the category — format, quality, face, person, posing, or other
{
  "entry": {
    "id": "scan_testIDFHsFggF",
    "status": "failure",
    "error": {
      "code": "rightPhotoFacingWrongDirection",
      "type": "posing"
    }
  }
}

Posing errors

For every error of type posing, consult the Posing guidelines for how to position the person correctly, and retake the photos.


Format errors

Returned when an uploaded image can't be read as a valid scan input.

CodeExplanation
noEXIFAn image is missing EXIF data.
invalidPhotoFormatInvalid image format. Please consult the photo format requirements in the Posing guidelines.

Quality errors

Returned when an image is technically valid but too dark, bright, or blurry to process accurately.

CodeExplanation
imageTooDarkBackground too dark. Please take pictures again in a well-lit area.
imageTooBrightBackground too bright. Please take pictures again in a darker area.
imageTooBlurryImage is too blurry. Please hold the device steady and take pictures again.

Face errors

Returned when the face can't be located in the image.

CodeExplanation
faceNotDetectedFailed to detect a face. Please be sure the face is visible and try again.

Person errors

Returned when the wrong number of people are detected in the image.

CodeExplanation
personNotDetectedNo person detected. Please follow the Posing guidelines and retake the photos.
multiplePeopleDetectedMultiple people detected. Please avoid taking photos with other people in the frame and retake the photos.

Posing errors

Returned when a person is detected but not posed correctly. Review the Posing guidelines and retake the affected photo.

CodeExplanation
rightPhotoFacingWrongDirectionIn the right photo, the person is facing in the wrong direction.
frontPhotoNotInFrameIn the front photo, the person is not entirely within the photo.
rightPhotoNotInFrameIn the right photo, the person is not entirely within the photo.
frontPhotoLeftArmAngleIn the front photo, the person's left arm is not at the correct angle.
frontPhotoRightArmAngleIn the front photo, the person's right arm is not at the correct angle.
headNotInFrameIn the front photo, the person's head is not entirely within the photo.
leftArmNotInFrameIn the front photo, the person's left arm is not entirely within the photo.
rightArmNotInFrameIn the front photo, the person's right arm is not entirely within the photo.
leftLegNotInFrameIn the front photo, the person's left leg is not entirely within the photo.
rightLegNotInFrameIn the front photo, the person's right leg is not entirely within the photo.
feetNotInFrameIn the front photo, the person's feet are not entirely within the photo, or are not clearly visible.

Other errors

CodeExplanation
unknownAn internal error has occurred. Please wait and then retry the scan. If the error persists, contact Bodygram.

On this page