GitLab exit codes

Hello =D

I would like to ask a question considering exit codes/allow failure.

According to the documentation:

I should be able to set exit codes. However, the job fails.

Here is an example of my basic job:
image
This job fails even though it should not since I have defined an exit code:
image

If I replace the exit code with 1:
image

the job behaves as expected and allows failing:
image

Am I doing something wrong here? Is there a new way of letting jobs exit with a specific exit code?

Here is an example from the documentation as a reference:

Thank you very much in advance! :slight_smile: