Skip to content

Issue Codes in API Responses ​

A successful Passport Photo API response may include an issues array. These codes describe conditions detected in the source or processed photo that your application should review.

An issue code is different from an HTTP or authentication error: the request may succeed and still return one or more photo issues.

Issue reference ​

Issue codeMeaningSuggested user action
ISSUE_FACE_NOT_FOUNDNo usable face was detected.Upload a clear, single-person portrait with the complete face visible.
ISSUE_FACE_LIGHT_NOT_BALANCELighting differs too much between the two sides of the face.Face a soft, even light source and avoid strong side lighting.
ISSUE_FACE_BRIGHTNESS_BADThe face is too dark or too bright.Retake the photo in even light and avoid backlighting or direct flash.
ISSUE_PHOTO_SHARPNESS_BADThe photo is blurred, out of focus, or lacks sufficient detail.Hold the camera steady, focus on the face, and use a higher-resolution image.
ISSUE_EYEGLASSES_NOT_ALLOWEDEyeglasses were detected where the selected specification does not allow them.Remove the glasses and retake the photo.
ISSUE_EYEGLASSES_REFLECTIONReflections on glasses may obscure the eyes.Remove the glasses or change the lighting and camera angle.
ISSUE_SUNGLASSES_NOT_ALLOWEDSunglasses obscure the face or eyes.Remove the sunglasses and retake the photo.
ISSUE_HAT_NOT_ALLOWEDUnsupported headwear was detected.Remove non-permitted headwear and retake the photo.
ISSUE_MASK_NOT_ALLOWEDA face mask is present. This issue code is marked as coming soon.Ask the user to remove the mask and retake the photo when this check is enabled.
ISSUE_RELIGION_MASK_FOUNDA religious face covering was detected. This issue code is marked as coming soon.Review the applicable photo requirements when this check is enabled.
ISSUE_EXPRESSION_NOT_NEUTRALThe expression is not sufficiently neutral.Look at the camera with a closed mouth and relaxed expression.
ISSUE_BOTTOM_NOT_FULLThe source image does not contain enough area below the subject.Move the camera back and include the complete shoulders and upper torso.
ISSUE_LEFT_NOT_FULLThe left shoulder area is incomplete.Move the camera back and keep both shoulders inside the frame.
ISSUE_RIGHT_NOT_FULLThe right shoulder area is incomplete.Move the camera back and keep both shoulders inside the frame.
ISSUE_HEAD_YAW_OVER_THRESHOLDThe head is turned too far left or right.Face the camera directly.
ISSUE_HEAD_PITCH_OVER_THRESHOLDThe head is tilted too far up or down.Hold the head upright and look straight at the camera.
ISSUE_NOT_IN_COLORThe submitted photo is not in color.Upload an original color photo.
ISSUE_PHOTO_SPEC_NOT_EXISTThe requested photo specification was not found.Query the current spec list and submit a valid specCode.

Do not show raw issue codes to end users. Map each code to a short, localized instruction and decide whether your workflow should:

  • continue with a warning;
  • ask the user to review the preview; or
  • require a new photo.

When multiple issues are returned, show the most actionable guidance first. For example, ask the user to retake a severely blurred photo before addressing smaller positioning issues.

Sensitivity overrides are available for selected checks. See Passport Photo API request fields.

Framing examples ​

The following example illustrates insufficient bottom, left-shoulder, or right-shoulder coverage.

Examples of source portraits with incomplete framingGenerated outputs affected by incomplete source framing