I think it makes sense as if constants exist they should be use, but I must admit that in term of code readability keeping HTTP code 412 would be better.
Plus it would imply to replace all numerical HTTP code in functions by their constants equivalent which would turn the code sometimes a little to much verbose.
What's your opinion @Tobion ?