<?php

return [
    'heading' => 'That did not work',
    'back' => 'Back',
    'home' => 'To the home page',

    // Deliberately plain, and never technical: whoever reads this is already
    // stuck, and "Unprocessable Entity" has never helped anyone get unstuck.
    '401' => [
        'title' => 'Please sign in first.',
        'body' => 'This page is only available once you are signed in.',
        'hint' => 'If you were signed in, your session has expired.',
    ],
    '403' => [
        'title' => 'Your account may not open this.',
        'body' => 'This page needs a permission your account does not have.',
        'hint' => 'If that seems wrong, ask whoever owns the account.',
    ],
    '404' => [
        'title' => 'This page does not exist.',
        'body' => 'The address leads nowhere — mistyped, out of date, or moved.',
        'hint' => null,
    ],
    '405' => [
        'title' => 'This page cannot be reached that way.',
        'body' => 'The request does not match this address.',
        'hint' => null,
    ],
    '409' => [
        'title' => 'This account cannot be connected.',
        'body' => 'This customer\'s email address already belongs to a staff account. An owner needs to resolve that conflict before this portal can be reached.',
        'hint' => null,
    ],
    '419' => [
        'title' => 'The session has expired.',
        'body' => 'For security, a form stops being valid after a while.',
        'hint' => 'Reload the page and submit the form again.',
    ],
    '429' => [
        'title' => 'Too many attempts.',
        'body' => 'Please wait a moment before trying again.',
        'hint' => null,
    ],
    '500' => [
        'title' => 'Something went wrong on our side.',
        'body' => 'This is not your fault. It has been logged.',
        'hint' => 'If it keeps happening, write to office@clupilot.com.',
    ],
];
