Error keys
Generated by pnpm docs:reference from the local database (BE-M0-31). Never edit this page by hand (D27).
Every key is a value of the enum public.error_key (D10, D30). A refusal raises its key as the error message, with a JSON detail holding the values its text needs. 42501 is a missing permission (app.deny); P0001 is a broken rule (app.refuse). What a key means is the Refusal line of the rule that raises it. A constraint refusal raises Postgres's own code and names the constraint instead (23505, 23514, 23503).
| Key | Code | Raised by | Rules |
|---|---|---|---|
access.cannot_change_self |
P0001 |
app.check_member_manager |
R-ACC-247, R-ACC-187, R-ACC-189, R-ACC-193 |
access.cannot_delegate_self |
P0001 |
public.delegate_permission |
R-ACC-234, R-ACC-247 |
access.ends_at_past |
P0001 |
public.delegate_permission |
R-ACC-234, R-ACC-248, R-ACC-258 |
access.grant_not_held |
42501 |
app.check_invitation_sender, app.check_member_held, app.check_override_held, app.check_role_held, app.guard_grant_held, public.revoke_invitation |
R-ACC-91, R-ACC-95, R-ACC-187, R-ACC-189, R-ACC-191, R-ACC-207, R-ACC-286, R-ACC-219, R-ACC-50, R-ACC-108, R-ACC-109, R-ACC-111, R-ACC-125, R-ACC-128, R-ACC-130 |
access.last_user_manager |
42501 |
app.guard_last_user_manager, public.clear_override, public.revoke_role, public.set_override |
R-ACC-109, R-ACC-125, R-ACC-128 |
access.member_already_active |
P0001 |
public.reinstate_member |
R-ACC-188, R-ACC-200 |
access.member_no_role_at_pool |
P0001 |
public.delegate_permission |
R-ACC-234, R-ACC-237, R-ACC-264 |
access.member_not_active |
P0001 |
public.clear_override, public.delegate_permission, public.grant_role, public.revoke_role, public.set_all_rental_companies, public.set_company_scope, public.set_override, public.suspend_member |
R-ACC-234, R-ACC-264, R-ACC-187, R-ACC-188, R-ACC-194, R-ACC-142, R-ACC-165, R-ACC-165, R-ACC-166, R-ACC-166, R-ACC-173, R-ACC-108, R-ACC-109, R-ACC-115, R-ACC-125, R-ACC-128 |
access.member_not_found |
P0001 |
app.check_delegation_member, app.check_member_changer, app.check_member_manager, public.set_all_rental_companies, public.set_company_scope |
R-ACC-234, R-ACC-239, R-ACC-187, R-ACC-189, R-ACC-202, R-ACC-141, R-ACC-173, R-ACC-108, R-ACC-109, R-ACC-116, R-ACC-125, R-ACC-128 |
access.member_outside_scope |
42501 |
app.check_member_in_scope |
R-ACC-234, R-ACC-239, R-ACC-264, R-ACC-187, R-ACC-189, R-ACC-192, R-ACC-165, R-ACC-166, R-ACC-108, R-ACC-109, R-ACC-125, R-ACC-128 |
access.not_allowed |
42501 |
app.check_member_changer, app.check_member_manager, public.revoke_delegation, public.set_all_rental_companies, public.set_company_scope |
R-ACC-239, R-ACC-264, R-ACC-187, R-ACC-189, R-ACC-190, R-ACC-136, R-ACC-173, R-ACC-19, R-ACC-108, R-ACC-109, R-ACC-110, R-ACC-125, R-ACC-128 |
access.not_delegable |
P0001 |
app.guard_delegable, public.delegate_permission |
R-ACC-234, R-ACC-235 |
access.not_held_by_role |
42501 |
public.delegate_permission |
R-ACC-234, R-ACC-236 |
access.not_member |
42501 |
app.next_document_number |
R-NUM-09 |
access.override_already_set |
P0001 |
public.delegate_permission, public.set_override |
R-ACC-234, R-ACC-238, R-ACC-166, R-ACC-125, R-ACC-127, R-ACC-260 |
access.override_not_held |
P0001 |
public.clear_override, public.revoke_delegation |
R-ACC-239, R-ACC-264, R-ACC-264, R-ACC-166, R-ACC-128, R-ACC-129 |
access.permission_not_found |
P0001 |
public.delegate_permission, public.set_override |
R-ACC-234, R-ACC-125, R-ACC-131 |
access.pool_not_available |
P0001 |
public.delegate_permission, public.set_override |
R-ACC-234, R-ACC-125, R-ACC-132 |
access.reason_required |
P0001 |
public.delegate_permission |
R-ACC-234, R-ACC-257, R-ACC-263 |
access.rental_companies_required |
P0001 |
app.check_invitation_scope, public.set_company_scope |
R-ACC-154 |
access.rental_companies_with_flag |
P0001 |
app.refuse_invitation_rental_companies_with_flag, app.refuse_rental_companies_with_flag |
R-ACC-243, R-ACC-172 |
access.rental_company_not_active |
P0001 |
app.check_invitation_scope, public.set_company_scope |
R-ACC-159, R-ACC-138 |
access.rental_company_not_found |
P0001 |
app.check_invitation_scope, public.set_company_scope |
R-ACC-157, R-ACC-137, R-ACC-149 |
access.rental_company_not_held |
42501 |
app.check_invitation_in_scope, app.check_invitation_scope, public.resend_invitation, public.set_company_scope |
R-ACC-95, R-ACC-158, R-ACC-182, R-ACC-207, R-ACC-210, R-ACC-286, R-ACC-149, R-ACC-152 |
access.role_already_held |
P0001 |
public.grant_role |
R-ACC-165, R-ACC-108, R-ACC-112 |
access.role_not_at_pool |
P0001 |
public.grant_role |
R-ACC-108, R-ACC-114 |
access.role_not_held |
P0001 |
public.revoke_role |
R-ACC-165, R-ACC-109, R-ACC-113 |
access.scope_limit_required |
42501 |
app.check_invitation_in_scope, public.resend_invitation, public.set_all_rental_companies |
R-ACC-95, R-ACC-161, R-ACC-207, R-ACC-210, R-ACC-286, R-ACC-150, R-ACC-173 |
allocation.cross_entity_blocked |
P0001 |
app.allocation_guard |
R-MON-18 |
allocation.exceeds_balance |
P0001 |
app.allocation_guard |
R-MON-15 |
allocation.exceeds_payment |
P0001 |
app.allocation_guard |
R-MON-14 |
allocation.payment_voided |
P0001 |
app.allocation_guard |
R-MON-13 |
auth.password_already_set |
P0001 |
public.assert_first_password |
R-ACC-245 |
charge.inspection_locked |
P0001 |
app.guard_charge_inspection |
R-MON-83 |
charge.status_locked |
42501 |
app.guard_charge_status |
R-MON-37 |
document.bad_period |
P0001 |
app.next_document_number |
|
document.wrong_organization |
P0001 |
app.next_document_number |
|
driver.not_found |
P0001 |
app.set_driver_stage |
|
driver.secondary_phone_same |
P0001 |
app.check_driver_secondary_phone |
R-DRV-51 |
driver.stage_forbidden |
42501 |
app.set_driver_stage |
R-DRV-07 |
driver.stage_locked |
42501 |
drivers (trigger guard_stage) |
R-DRV-06 |
gps.device_already_active |
P0001 |
public.activate_gps_device |
R-GPS-22 |
gps.device_in_use |
P0001 |
public.link_gps_device |
R-GPS-24 |
gps.device_not_found |
P0001 |
app.gps_device_for_write |
R-GPS-22, R-GPS-26 |
gps.device_not_linked |
P0001 |
app.gps_device_for_write |
R-GPS-22, R-GPS-26 |
gps.field_required |
P0001 |
public.link_gps_device |
R-GPS-39 |
gps.slot_taken |
P0001 |
public.link_gps_device |
R-GPS-23 |
gps.unknown_provider |
P0001 |
app.gps_ingest, app.gps_pull, public.link_gps_device |
R-GPS-03 |
inspection.return_reason_mismatch |
P0001 |
app.inspection_return_reason |
|
insurance.dates_invalid |
P0001 |
app.check_policy |
R-ASR-18 |
insurance.field_required |
P0001 |
app.check_policy |
R-ASR-17 |
insurance.not_allowed |
42501 |
public.add_policy, public.change_policy |
R-ASR-05, R-ASR-16, R-ASR-17, R-ASR-23 |
insurance.policy_not_found |
P0001 |
public.change_policy |
R-ASR-23 |
insurance.policy_number_taken |
P0001 |
app.check_policy, public.add_policy, public.change_policy |
R-ASR-20 |
insurance.premium_invalid |
P0001 |
app.check_policy |
R-ASR-19 |
invitation.already_member |
P0001 |
public.restore_invitation |
R-ACC-286, R-ACC-214, R-ACC-275 |
invitation.already_pending |
P0001 |
public.invite_member, public.restore_invitation |
R-ACC-102, R-ACC-286, R-ACC-220 |
invitation.email_invalid |
P0001 |
public.invite_member |
R-ACC-103 |
invitation.expired |
P0001 |
public.accept_invitation |
R-ACC-268, R-ACC-277 |
invitation.grant_not_held |
R-ACC-269 | ||
invitation.login_exists |
P0001 |
app.settle_invitation, public.invite_member, public.restore_invitation |
R-ACC-92, R-ACC-102, R-ACC-276, R-ACC-277, R-ACC-286, R-ACC-286, R-ACC-275, R-ACC-220 |
invitation.not_allowed |
42501 |
app.check_invitation_sender, public.revoke_invitation |
R-ACC-57, R-ACC-95, R-ACC-207, R-ACC-208, R-ACC-286 |
invitation.not_found |
P0001 |
app.lock_invitation, public.accept_invitation, public.resend_invitation |
R-ACC-95, R-ACC-270, R-ACC-277, R-ACC-278, R-ACC-207, R-ACC-286 |
invitation.not_pending |
P0001 |
public.resend_invitation, public.revoke_invitation |
R-ACC-95, R-ACC-207, R-ACC-209 |
invitation.not_voided |
P0001 |
public.restore_invitation |
R-ACC-286, R-ACC-213 |
invitation.rental_companies_not_allowed |
P0001 |
app.check_invitation_scope |
R-ACC-160 |
invitation.role_not_at_pool |
P0001 |
app.check_invitation_sender |
R-ACC-90, R-ACC-286 |
invitation.scope_not_held |
R-ACC-269 | ||
master_data.account_taken |
P0001 |
app.check_account_number |
R-MD-42 |
master_data.code_invalid |
P0001 |
app.check_entity_code, app.check_master_data_code |
R-MD-07, R-MD-38, R-MD-67, R-TEN-20 |
master_data.code_taken |
P0001 |
app.check_entity_code, app.check_master_data_code |
R-MD-06, R-MD-37, R-MD-65, R-TEN-07, R-TEN-08, R-TEN-22 |
master_data.field_required |
P0001 |
app.check_master_data_required |
R-MD-83 |
master_data.in_use |
P0001 |
app.set_master_data_active |
R-TEN-23, R-TEN-25, R-TEN-26, R-TEN-27 |
master_data.last_active |
P0001 |
app.set_master_data_active |
R-TEN-23, R-TEN-27 |
master_data.name_required |
P0001 |
app.master_data_text |
R-MD-10, R-MD-36, R-MD-48, R-MD-68, R-MD-83, R-TEN-28 |
master_data.name_taken |
P0001 |
app.check_master_data_name |
R-MD-06, R-MD-31, R-MD-64 |
master_data.not_allowed |
42501 |
app.check_master_data, app.check_master_data_write, app.check_rental_company_write |
R-MD-02, R-MD-16, R-MD-24, R-MD-26, R-MD-27, R-MD-41, R-MD-43, R-MD-44, R-MD-52, R-MD-54, R-MD-55, R-MD-56, R-MD-57, R-MD-58, R-MD-80, R-MD-83, R-MD-86, R-SET-05, R-SET-10, R-SET-11, R-SET-12, R-SET-13, R-SET-16, R-SET-17, R-TEN-12, R-TEN-23, R-TEN-24 |
master_data.not_found |
P0001 |
app.check_master_data, app.check_model_links, app.entity_for, app.partner_side |
R-ASR-16, R-ASR-21, R-MD-16, R-MD-23, R-MD-26, R-MD-27, R-MD-40, R-MD-43, R-MD-44, R-MD-52, R-MD-57, R-MD-58, R-MD-63, R-TEN-18, R-TEN-23, R-TEN-24 |
master_data.operator_company_locked |
P0001 |
app.set_master_data_active |
R-MD-57, R-MD-86 |
master_data.out_of_range |
P0001 |
app.check_master_data_min, app.check_master_data_range |
R-MD-16, R-MD-39, R-MD-71, R-TEN-29 |
master_data.pair_taken |
P0001 |
public.add_insurer_garage |
R-MD-61 |
master_data.phone_invalid |
P0001 |
app.master_data_phone |
R-MD-69 |
master_data.retired |
P0001 |
app.check_entity_active, app.check_model_retired, app.check_partner_sides, app.check_policy, public.change_contract_template |
R-ASR-16, R-ASR-21, R-MD-29, R-MD-44, R-MD-45, R-MD-46, R-MD-58, R-MD-60 |
master_data.system_row_locked |
P0001 |
app.set_master_data_active, public.change_body_panel, public.change_charge_type, public.change_inspection_item_type, public.change_lead_source |
R-MD-05, R-MD-26, R-MD-57 |
master_data.template_active |
P0001 |
app.check_template_free |
R-MD-44, R-MD-47 |
master_data.timezone_invalid |
P0001 |
public.add_pool |
R-TEN-16 |
migration.dropped_deny |
R-MIG-11 | ||
migration.no_open_run |
R-MIG-01 | ||
migration.operator_company_ambiguous |
R-MD-89 | ||
migration.step_rentals_no_rate_history |
|||
migration.unknown_step |
R-MIG-01 | ||
migration.unmapped_values |
R-MIG-02, R-RNT-36, R-RNT-38, R-RNT-39, R-RNT-65 | ||
notification.already_acknowledged |
P0001 |
public.acknowledge_notification |
R-NTF-16, R-NTF-18 |
notification.already_resolved |
P0001 |
public.acknowledge_notification |
R-NTF-16, R-NTF-19 |
notification.not_found |
P0001 |
public.acknowledge_notification |
R-NTF-16, R-NTF-17, R-NTF-20 |
notification.type_not_found |
P0001 |
app.notify |
R-NTF-11, R-NTF-21 |
opname.recheck_not_finished |
P0001 |
app.opname_recheck_finished, app.opname_scan_check |
R-OPN-07, R-OPN-20 |
opname.session_finished |
P0001 |
app.opname_scan_check |
R-OPN-07 |
opname.session_void |
P0001 |
app.opname_scan_check |
R-OPN-18 |
payment.migrated_locked |
P0001 |
app.guard_payment_migrated |
R-MON-55 |
payout.operator_company |
P0001 |
app.guard_payout_company |
R-MON-98 |
profile.locale_unsupported |
P0001 |
public.set_my_locale |
R-ACC-32 |
profile.name_required |
P0001 |
public.set_my_full_name |
R-ACC-285 |
profile.name_too_long |
P0001 |
public.set_my_full_name |
R-ACC-285 |
profile.not_found |
P0001 |
public.set_my_locale |
|
profile.not_signed_in |
42501 |
app.check_delegation_member, app.check_member_changer, app.check_member_manager, public.accept_invitation, public.assert_first_password, public.invite_member, public.resend_invitation, public.restore_invitation, public.revoke_invitation, public.set_all_rental_companies, public.set_company_scope, public.set_my_full_name, public.set_my_locale |
R-ACC-234, R-ACC-239, R-ACC-245, R-ACC-277, R-ACC-187, R-ACC-188, R-ACC-189, R-ACC-207, R-ACC-286, R-ACC-284 |
rental.cross_pool |
P0001 |
app.rentals_pool_guard |
R-RNT-04 |
rental.status_locked |
42501 |
rentals (trigger guard_status) |
R-RNT-08 |
repo_request.already_open |
P0001 |
app.repo_requests_one_live |
R-REP-05 |
repo_work_order_unit.already_pending |
P0001 |
app.repo_work_order_units_guard |
R-REP-21 |
repo_work_order_unit.closer_not_pic |
P0001 |
app.repo_work_order_units_guard |
R-REP-25 |
repo_work_order_unit.pool_mismatch |
P0001 |
app.repo_work_order_units_guard |
R-REP-19 |
settings.escalation_hours_invalid |
P0001 |
app.check_escalation_hours |
R-SET-15 |
settings.not_escalating_type |
P0001 |
app.check_escalation_hours |
R-SET-14 |
settings.out_of_range |
P0001 |
app.check_setting_range |
R-GPS-15, R-SET-12, R-SET-18 |
settings.pool_not_found |
P0001 |
app.setting, public.set_pool_settings |
R-SET-17 |
settings.queue_hours_invalid |
P0001 |
app.queue_hours_invalid |
R-SET-20 |
settings.unknown_key |
P0001 |
app.setting |
|
settings.warning_after_critical |
P0001 |
public.set_organization_settings |
R-SET-19 |
vehicle.batch_duplicate |
R-VEH-78 | ||
vehicle.batch_refused |
P0001 |
public.vehicle_batch |
R-VEH-81 |
vehicle.batch_too_many |
P0001 |
public.vehicle_batch |
R-VEH-79 |
vehicle.cross_pool_blocked |
P0001 |
app.default_pool_from_vehicle |
|
vehicle.document_file_already_set |
P0001 |
public.set_vehicle_document_file |
R-VEH-49 |
vehicle.document_not_found |
P0001 |
public.set_vehicle_document_file |
R-VEH-49 |
vehicle.document_path_invalid |
P0001 |
public.set_vehicle_document_file |
R-VEH-49 |
vehicle.field_invalid |
P0001 |
app.vehicle_check, public.add_vehicle_document |
R-VEH-47, R-VEH-65, R-VEH-69, R-VEH-71 |
vehicle.field_required |
P0001 |
app.vehicle_check, public.add_vehicle_document, public.add_vehicle_photo, public.change_plate |
R-VEH-47, R-VEH-54, R-VEH-70, R-VEH-89 |
vehicle.inactive |
P0001 |
public.change_plate |
R-VEH-92 |
vehicle.not_allowed |
42501 |
app.gps_device_for_write, app.vehicle_check, public.add_vehicle_document, public.add_vehicle_photo, public.change_plate, public.link_gps_device, public.set_vehicle_document_file, public.set_vehicle_photo_file |
R-GPS-22, R-GPS-26, R-GPS-27, R-VEH-12, R-VEH-47, R-VEH-48, R-VEH-49, R-VEH-54, R-VEH-55, R-VEH-72, R-VEH-82, R-VEH-86 |
vehicle.not_found |
P0001 |
app.set_vehicle_status, public.add_policy, public.add_vehicle_document, public.add_vehicle_photo, public.change_plate, public.link_gps_device, public.move_vehicle_status |
R-ASR-16, R-ASR-17, R-VEH-48, R-VEH-54, R-VEH-87, R-VEH-94 |
vehicle.photo_file_already_set |
P0001 |
public.set_vehicle_photo_file |
R-VEH-55 |
vehicle.photo_file_missing |
P0001 |
public.set_vehicle_photo_file |
R-VEH-55 |
vehicle.photo_not_found |
P0001 |
public.set_vehicle_photo_file |
R-VEH-55 |
vehicle.photo_path_invalid |
P0001 |
public.set_vehicle_photo_file |
R-VEH-55 |
vehicle.plate_in_use |
P0001 |
app.set_vehicle_status, app.vehicle_check, public.change_plate, public.create_vehicle |
R-VEH-24, R-VEH-47, R-VEH-90, R-VEH-96 |
vehicle.plate_locked |
42501 |
vehicles (trigger guard_plate) |
R-VEH-85 |
vehicle.plate_unchanged |
P0001 |
public.change_plate |
R-VEH-91 |
vehicle.rental_company_not_held |
42501 |
app.vehicle_check |
R-VEH-47, R-VEH-72 |
vehicle.status_forbidden |
42501 |
app.set_vehicle_status, public.move_vehicle_status |
R-VEH-08, R-VEH-95, R-VEH-96, R-VEH-97 |
vehicle.status_locked |
42501 |
vehicles (trigger guard_status) |
R-VEH-06 |
vehicle.status_move_forbidden |
P0001 |
public.move_vehicle_status |
R-VEH-94, R-VEH-95, R-VEH-98 |
vehicle.stnk_expired |
P0001 |
app.set_vehicle_status |
R-VEH-25 |
vehicle.unit_code_taken |
P0001 |
app.vehicle_check, public.create_vehicle |
R-VEH-47 |
vehicle.vin_taken |
P0001 |
app.vehicle_check, public.create_vehicle |
R-VEH-26, R-VEH-47 |