Today's most durable "paint type" gun finish is Cerakote.
It's tough enough that some gun makers are using it as a primary finish.
Preparation and application is absolutely critical, much more than the other paint type finishes.
Failure to closely follow the directions results in a substandard finish that won't stand up.
You'll hear home finishers complain that Cerakote isn't durable or looks bad. This is invariably cause by not following the specific instructions. There are no short cuts.
Their web site has a tutorial that shows the details.
This includes the exact type of media to use to bead blast, baking to drive out oils, and application spraying.
Cerakote is one of the thinnest finishes.
You could probably get the gun processed by a factory authorized service cheaper then plating or bluing.
https://www.cerakoteguncoatings.com/
https://www.cerakoteguncoatings.com/resources/files/training/Cerakote_ELITE_H-Series_Training_Manual_WEB_1-17-17.pdf
Brownell's sell Cerakote in both air curing and oven curing.
Other do it yourself gun finishes are parkerizing, and slow rust bluing.
Parkerizing is rather easily done on a stove top with minimal equipment.
You can get zinc phosphate and modern mil-spec Manganese phosphate from Brownell's and they sell a pre-dip that makes standard parkerizing come out flat black.
Brownell's also have directions and you can find directions online on Youtube.
Also, Brownell's have how-to videos on the pages where the two types are listed.
Brownell's sell standard zinc Phosphate parkerizing in pints manganese in gallons, and these are available from several other sources.
Slow rust bluing is also fairly easy, but it's somewhat messy and takes several days.
Unlike the paint type and parkerizing finishes, slow rust does not require the parts be bead blasted.
The finish is a satin blue color that's actually more durable then modern hot salts bluing.
NOTE: on Cerakote and other paint type finishes the TYPE of bead blasting media is critical. Use the wrong type and the finish will not adhere. Read the Cerakote site for what type to use.